package ningbo.day04.basic;

/**
 * @Author 宁铂
 * @Date 2021/7/18 9:44
 * @Version 1.0
 */
public class TestForDemo {
    /** 需求:利用for循环,打印左直角三角形 */
    public static void main(String[] args) {
        TestForTriangle();
    }

    private static void TestForTriangle() {
        for (int i = 1; i <= 5; i++){
            for (int j = 1; j <= i; j++){
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
